package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.ExperimentSampleTestProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 抽样样品试验项目(ExperimentSampleTestProject)表数据库访问层
 *
 * @author linzi
 * @since 2023-12-31 20:37:12
 */
public interface ExperimentSampleTestProjectMapper extends BaseMapper<ExperimentSampleTestProject> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentSampleTestProject> getList(ExperimentSampleTestProject entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    ExperimentSampleTestProject loadById(@Param("id") Long id);

    /**
     * 根据试验项目code获取对应的配置
     *
     * @param testProjectCodeList
     * @return
     */
    List<ExperimentSampleTestProject> selectByTestProjectCodeList(@Param("testProjectCodeList") Set<String> testProjectCodeList);

    /**
     * 根据试验项目code获取对应的配置
     *
     * @param itemCode
     * @return
     */
    ExperimentSampleTestProject selectByItemCode(@Param("itemCode") String itemCode);
}
